﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class pro_mis_submit : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
        MasApp.BLL.Check.CheckLogin();
            if (Request.QueryString[0] == null)
            {
                MasApp.BLL.ResponseHelper.alert("非法链接", "misSub.aspx");
            }
        }
    }

    public string submit2()
    {
        int levelmissionid = int.Parse(Request.QueryString[0].ToString());
        MasApp.Model.levelmission lm = new MasApp.Model.levelmission();
        lm.Levelmissionid = levelmissionid;
        lm.State = "有效的";
        if (MasApp.BLL.Update.FinishLevelmission(lm) > 0)
        {
            return "提交成功，您可以再“历史任务”列表里查看您的历史任务。";
        }
        else
        {
            return "任务提交失败！";
        }
    }
}
